<!-- 父组件 -->
<template>
  {{ count }}
  <button @click="count++">+</button>
  <Son :prop1="count"></Son>
</template>

<script lang="ts" setup>
import { ref } from "vue";

const count = ref(0);
const msg = ref();
import Son from "@/components/Son.vue";
</script>

<style scoped>

</style>